do
  local oldprint = print
  local print = function(...) oldprint('test.lua:',...) end
  print('about to call myfunc from lua')
  myfunc(testobj)
  -- test getting a field
  print('about to read and print "testfield" from testobj')
  print(testobj.testfield)
  -- test setting a field
  print('about to set "testfield" to "woot"')
  testobj.testfield = 'woot'
  -- get it again
  print('about to read and print "testfield" again')
  print(testobj.testfield)
  print('all done')
end
